const state = {
    urlArray: [
        { str: 'http://www.baidu.com', edit: false },
        { str: 'http://baike.baidu.com', edit: false }
    ],
};
const getters = {};
const mutations = {};
const actions = {
    deleteUrl(context, index) {
        context.state.urlArray.splice(index, 1);
    },
};

export default {
    namespaced: true,
    state,
    getters,
    mutations,
    actions
}